package com.dt76.smallloanbackendservice.controller.xiaohao;

import com.dt76.smallloanbackendservice.pojo.xiaohao.LoanType;
import com.dt76.smallloanbackendservice.service.xiaohao.LoanTypeService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/xiaohao")
public class LoanTypeController {

    @Resource
    private LoanTypeService loanTypeService;

    @RequestMapping("/LoanType/qryLoanType")
    @ResponseBody
    public List<LoanType> qryLoanType(){
       return loanTypeService.qryLoanType();
    }
}
